﻿document.onkeydown = function(e) {
	var event = e || window.event;
	var code = event.keyCode || event.which || event.charCode;
	if (code == 13) {
		login();
	}
}
$(function() {
	$("input[name='username']").focus();
});
function cleardata() {
	$('#loginForm').form('clear');
}
function login() {
	location.href = "login?username="+$("input[name='username']").val()+"&password="+$("input[name='password']").val();
}